package com.oopnet.template.dao;

import java.util.List;

import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import com.oopnet.template.entity.Personnel;

@Repository
public interface PersonnelMapper {
	String a = "";  //自动为 static final 的变量
    int deleteByPrimaryKey(Integer id);

    int insert(Personnel record);

    int insertSelective(Personnel record);
    
    Personnel selectByPrimaryKey(Integer id);
    
    // 对结果集进行分页，逻辑分页
    List<Personnel> selectAll(RowBounds rowBounds);
    
    // pageHelper进行物理分页
    List<Personnel> selectAllByPageHelper();
    
    int updateByPrimaryKeySelective(Personnel record);

    int updateByPrimaryKey(Personnel record);
    
}
